﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200116F RID: 4463
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetLanguageScRsp : IMessage<SetLanguageScRsp>, IMessage, IEquatable<SetLanguageScRsp>, IDeepCloneable<SetLanguageScRsp>, IBufferMessage
	{
		// Token: 0x17003876 RID: 14454
		// (get) Token: 0x0600C7BA RID: 51130 RVA: 0x0021A899 File Offset: 0x00218A99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetLanguageScRsp> Parser
		{
			get
			{
				return SetLanguageScRsp._parser;
			}
		}

		// Token: 0x17003877 RID: 14455
		// (get) Token: 0x0600C7BB RID: 51131 RVA: 0x0021A8A0 File Offset: 0x00218AA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetLanguageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003878 RID: 14456
		// (get) Token: 0x0600C7BC RID: 51132 RVA: 0x0021A8B2 File Offset: 0x00218AB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetLanguageScRsp.Descriptor;
			}
		}

		// Token: 0x0600C7BD RID: 51133 RVA: 0x0021A8B9 File Offset: 0x00218AB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLanguageScRsp()
		{
		}

		// Token: 0x0600C7BE RID: 51134 RVA: 0x0021A8C1 File Offset: 0x00218AC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLanguageScRsp(SetLanguageScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.dKNJKIALLGI_ = other.dKNJKIALLGI_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C7BF RID: 51135 RVA: 0x0021A8F2 File Offset: 0x00218AF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetLanguageScRsp Clone()
		{
			return new SetLanguageScRsp(this);
		}

		// Token: 0x17003879 RID: 14457
		// (get) Token: 0x0600C7C0 RID: 51136 RVA: 0x0021A8FA File Offset: 0x00218AFA
		// (set) Token: 0x0600C7C1 RID: 51137 RVA: 0x0021A902 File Offset: 0x00218B02
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700387A RID: 14458
		// (get) Token: 0x0600C7C2 RID: 51138 RVA: 0x0021A90B File Offset: 0x00218B0B
		// (set) Token: 0x0600C7C3 RID: 51139 RVA: 0x0021A913 File Offset: 0x00218B13
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LanguageType DKNJKIALLGI
		{
			get
			{
				return this.dKNJKIALLGI_;
			}
			set
			{
				this.dKNJKIALLGI_ = value;
			}
		}

		// Token: 0x0600C7C4 RID: 51140 RVA: 0x0021A91C File Offset: 0x00218B1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetLanguageScRsp);
		}

		// Token: 0x0600C7C5 RID: 51141 RVA: 0x0021A92A File Offset: 0x00218B2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetLanguageScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.DKNJKIALLGI == other.DKNJKIALLGI && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C7C6 RID: 51142 RVA: 0x0021A968 File Offset: 0x00218B68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.DKNJKIALLGI != LanguageType.LanguageNone)
			{
				num ^= this.DKNJKIALLGI.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C7C7 RID: 51143 RVA: 0x0021A9C6 File Offset: 0x00218BC6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C7C8 RID: 51144 RVA: 0x0021A9CE File Offset: 0x00218BCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C7C9 RID: 51145 RVA: 0x0021A9D8 File Offset: 0x00218BD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DKNJKIALLGI != LanguageType.LanguageNone)
			{
				output.WriteRawTag(64);
				output.WriteEnum((int)this.DKNJKIALLGI);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C7CA RID: 51146 RVA: 0x0021AA34 File Offset: 0x00218C34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.DKNJKIALLGI != LanguageType.LanguageNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.DKNJKIALLGI);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C7CB RID: 51147 RVA: 0x0021AA8C File Offset: 0x00218C8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetLanguageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.DKNJKIALLGI != LanguageType.LanguageNone)
			{
				this.DKNJKIALLGI = other.DKNJKIALLGI;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C7CC RID: 51148 RVA: 0x0021AADC File Offset: 0x00218CDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C7CD RID: 51149 RVA: 0x0021AAE8 File Offset: 0x00218CE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.DKNJKIALLGI = (LanguageType)input.ReadEnum();
				}
			}
		}

		// Token: 0x0400503D RID: 20541
		private static readonly MessageParser<SetLanguageScRsp> _parser = new MessageParser<SetLanguageScRsp>(() => new SetLanguageScRsp());

		// Token: 0x0400503E RID: 20542
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400503F RID: 20543
		public const int RetcodeFieldNumber = 14;

		// Token: 0x04005040 RID: 20544
		private uint retcode_;

		// Token: 0x04005041 RID: 20545
		public const int DKNJKIALLGIFieldNumber = 8;

		// Token: 0x04005042 RID: 20546
		private LanguageType dKNJKIALLGI_;
	}
}
